package main

import (
	"fmt"

	"gitee.com/xieyu305/workers/routines"
)

const sourcePath = "C:/Download/SourceImages"
const resultPath = "C:/Download/ResultImages"

func main() {
	go routines.ReadImagesFromPath(sourcePath)
	allComplete := make(chan bool)
	go routines.WriteImageToPath(resultPath, allComplete)
	numberOfWorkers := 10
	routines.CreateWorkers(numberOfWorkers)
	<-allComplete
	fmt.Println("All works done!")
}
